<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
#auto {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -50px;
	margin-left: -100px;
	/* border:1px solid #e0f900; */
	line-height: 30px;
	font-size: 16px;
	text-align: center;
	height: 300px;
	width: 300px;
}

.tess {
	margin: 20px;
}
</style>
</head>
<body>
	<form action="LoginServlet" method="post">
		<div id="auto">
			<div name="tess">
				用戶：<input type="text" name="yonghu"
					onmouseover="this.style.borderColor='red'"
					onmouseout="this.style.borderColor='#ddd'" />
			</div>
			<div name="tess">
				密碼：<input type="password" name="mima"
					onmouseover="this.style.borderColor='red'"
					onmouseout="this.style.borderColor='#ddd'" />
			</div>
			<input type="submit" value="立即登入" />
			<h2><%=session.getAttribute("failed") %></h2>
 			<input type="submit" value="立即注册" />
			
		</div>
	</form>

</body>
</html>